package com.only4play.practice.ordercenter;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

/**
 * @author mdy
 * * @date 2024/9/13
 */
@SpringBootApplication
@Slf4j
@MapperScan("com.only4play.practice.ordercenter.core.mapper")
@ComponentScans({
        // 扫描自定义异常，不然不生效
        @ComponentScan(basePackages = "com.only4play.practice.common.exception"),
        // 扫描自定义配置类，不然不生效
        @ComponentScan(basePackages = "com.only4play.practice.common.config")
})
public class OrderCenterCoreApp {
    public static void main(String[] args) {
        SpringApplication.run(OrderCenterCoreApp.class, args);
    }
}
